﻿// Write a program that allocates array of 20 integers and initializes each element by its index multiplied by 5. 
// Print the obtained array on the console.

using System;

class MultiplyIndexBy5
{
    static void Main()
    {
        int arrayLenght = 20;
        int multiplier = 5;

        int[] intArray = new int[arrayLenght - 1];

        for (int i = 0; i < intArray.Length; i++)
        {
            intArray[i] = i * multiplier;
        }

        for (int i = 0; i < intArray.Length; i++)
        {
            Console.Write(intArray[i]);
            if (i != intArray.Length - 1)
            {
                Console.Write(" ,");
            }
        }

        Console.WriteLine();
    }
}
